package com.wgj.android.custom;

import com.wgj.android.entity.ContactsInfo;

import java.util.Comparator;


public class PinyinComparator implements Comparator<ContactsInfo> {

	public int compare(ContactsInfo o1, ContactsInfo o2) {
		if (o1.getSortKey().equals("@")
				|| o2.getSortKey().equals("#")) {
			return -1;
		} else if (o1.getSortKey().equals("#")|| o2.getSortKey().equals("@")) {
			return 1;
		} else {
			int i = o1.getSortKey().compareTo(o2.getSortKey());
			return i;
		}
	}

}
